﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class _Default : System.Web.UI.Page
{

    DBConnection connect = new DBConnection();
    
    protected void Page_Load(object sender, EventArgs e)
    {
        
            
            DataSet ds = connect.GetAllProductsSale();
            collect.PageSize = 8;
            collect.DataSource = ds.Tables[0].DefaultView;
            collect.BindToControl = itemRepeater;
            itemRepeater.DataSource = collect.DataSourcePaged;

            DataSet ds1 = connect.GetAllProductsHot();
            CollectionPager1.PageSize = 8;
            CollectionPager1.DataSource = ds1.Tables[0].DefaultView;
            CollectionPager1.BindToControl = Repeater1;
            Repeater1.DataSource = CollectionPager1.DataSourcePaged;

            DataSet ds2 = connect.GetAllProductsHot();
            CollectionPager2.PageSize = 8;
            CollectionPager2.DataSource = ds2.Tables[0].DefaultView;
            CollectionPager2.BindToControl = Repeater2;
            Repeater2.DataSource = CollectionPager2.DataSourcePaged;
        
    }

    protected void select(object sender, CommandEventArgs e)
    {

    }


    protected void LinkButton1_Click(object sender, EventArgs e)
    {

    }

}